package io.wdb.modules.generator.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.wdb.modules.generator.generator.dao.UserEquipmentDao;
import io.wdb.modules.generator.generator.entity.UserEquipmentEntity;
import io.wdb.modules.generator.generator.service.UserEquipmentService;



@Service("userEquipmentService")
public class UserEquipmentServiceImpl implements UserEquipmentService {
	@Autowired
	private UserEquipmentDao userEquipmentDao;
	
	@Override
	public UserEquipmentEntity queryObject(Long id){
		return userEquipmentDao.queryObject(id);
	}
	
	@Override
	public List<UserEquipmentEntity> queryList(Map<String, Object> map){
		return userEquipmentDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return userEquipmentDao.queryTotal(map);
	}
	
	@Override
	public void save(UserEquipmentEntity userEquipment){
		userEquipmentDao.save(userEquipment);
	}
	
	@Override
	public void update(UserEquipmentEntity userEquipment){
		userEquipmentDao.update(userEquipment);
	}
	
	@Override
	public void delete(Long id){
		userEquipmentDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		userEquipmentDao.deleteBatch(ids);
	}
	
}
